package com.chenliang.testfilter.filter;

import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @program: springboot-filter
 * @description:
 * @author: chenLiang
 * @create: 2022-08-04 16:58
 */
public class Filter05 extends OncePerRequestFilter {


    @Override
    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
        System.out.println("Filter05 执行业务逻辑");
        filterChain.doFilter(httpServletRequest, httpServletResponse);
    }

}
